package grape.base.rest.appadvertisement.mapper;

import grape.base.service.appadvertisement.po.AppAdvertisement;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.base.rest.appadvertisement.form.AppAdvertisementCreateForm;
import grape.base.rest.appadvertisement.form.AppAdvertisementUpdateForm;
import grape.base.rest.appadvertisement.form.AppAdvertisementListPageForm;
import grape.base.rest.appadvertisement.vo.AppAdvertisementVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * app广告表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AppAdvertisementWebMapper extends WebMapper<AppAdvertisementVo, AppAdvertisement> {

    AppAdvertisement formToPo(AppAdvertisementCreateForm f);
    AppAdvertisement formToPo(AppAdvertisementUpdateForm f);
    AppAdvertisement formToPo(AppAdvertisementListPageForm f);
}
